<div align='left' id='module-path' class='news-tilte'><a href="<?php echo $this->webroot?>" class='news-tilte'>Trang chủ</a> <img align="absmiddle" src="<?php echo $this->webroot?>img/icon_list.png" border="0" width="11"/> 
<span><a href="<?php echo $this->webroot?>news/index/<?php echo $catenews['Father']['id']; ?>" class='news-tilte'>
<?php   echo $catenews['Father']['name']; ?>
</a></span>
<img align="absmiddle" src="<?php echo $this->webroot?>img/icon_list.png" border="0" width="11"/> <a href="<?php echo $this->webroot?>news/catenews/<?php echo $catenews['Catenews']['id'];?>" class='news-tilte'><?php echo $catenews['Catenews']['name'];?></a></div>
<div class="list-news"> 
	<?php 
		//debug($catenews);
		 $i=0;
		 foreach ($news_cate as $news):
		 $i++;
	?>
		<?php
			if($i==1){
		?>
		<div class="item-news-header">
			<?php
				if(is_file('files/uploads/news/'.$news['News']['image'])){
			?>
			<a href="<?php echo $this->webroot;?>news/view/<?php echo $news['News']['id'] ?>" style="float:left;">
			<img src='<?php echo $this->webroot;?>files/uploads/news/<?php echo $news['News']['image']; ?>' width="200" height='150' align="absmiddle" class = "img_list"/>
			</a>
			<?php }?>
			<div class="tieude">
				<?php echo $this->Html->link(cutstr($news['News']['title'],25), array('action' => 'view',$news['News']['id']),array('class'=> 'link_text_14_xanh_dam','title'=>$news['News']['title'])); ?>
			</div>
			<div style="margin-bottom:5px; margin-top:3px;" class="content-detail">
				 <?php
 				 $n=explode('-',$news['News']['ngaydang']);
				 if(count($n)>0){
					echo "Ngày đăng".": ".date('d/m/Y',mktime(0,0,0,$n[1],$n[2],$n[0]));
					}
				 ?>
			</div>
 			<div class="content-detail">
				<?php echo cutstr($news['News']['shortcontent'], 50);?>
			</div>
			<div class="clr"></div>                                    
		</div>
		<div class="item-space">
        </div>
		<?php }else{?>
		<div class="item-news">
			<?php
				if(is_file('files/uploads/news/'.$news['News']['image'])){
			?>
			<a href="<?php echo $this->webroot;?>news/view/<?php echo $news['News']['id'] ?>" style="float:left;">
			<img src='<?php echo $this->webroot;?>files/uploads/news/<?php echo $news['News']['image']; ?>' width="120" align="absmiddle" class = "img_list"/>
			</a>
			<?php }?>
			<div class="news-tilte">
				<?php echo $this->Html->link(cutstr($news['News']['title'],25), array('action' => 'view',$news['News']['id']),array('class'=> 'link_text_14_xanh_dam','title'=>$news['News']['title'])); ?>
			</div>
			<div style="margin-bottom:5px; margin-top:3px;" class="content-detail">
 			<?php
				$n=explode('-',$news['News']['ngaydang']);
				if(count($n)>2)
					echo "Ngày đăng".": ".date('d/m/Y',mktime(0,0,0,$n[1],$n[2],$n[0]));
			?>
			  
			</div>
			
			<div class="content-detail">
				<?php echo cutstr($news['News']['shortcontent'], 50);?>
			</div>
			<div class="clr" style="width:40px !important"></div>                                    
		</div>
        <div class="item-space" style="border-bottom:#F00 1px solid;">
        </div>
		<?php }?>
	<?php endforeach;?>
    <div class="paging">	
		<?php echo $this->element("pages");?>
	</div>
 </div>